package javax.per.toolkit.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 
 * @author yl34569
 *
 */
public class MailAuthenticator extends Authenticator{
	private String userName=null;
	private String password=null;
	
	public MailAuthenticator(){
		
	}
	
	public MailAuthenticator(String userName,String password){
		this.userName=userName;
		this.password=password;
	}
	
	protected PasswordAuthentication getPasswordAuthentication(){  
	    return new PasswordAuthentication(userName, password);  
    }  

}